﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using BarberShop.BLL;


public partial class AdImgPlayList : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            GetAdPlayData();
        }
    }

    protected void btn_search_Click(object sender, EventArgs e)
    {
        GetAdPlayData();
    }

    //getData
    protected void GetAdPlayData()
    {
        string name = tx_movieName.Text.Trim();
        var data = AdImgPalyListBLL.GetAdPlayListInfo(name);
        this.Grid_Movie.DataSource = data;
        this.Grid_Movie.DataBind();
    }

    protected void Grid_Movie_SelectedIndexChanging(object sender, GridViewSelectEventArgs e)
    {
        this.Grid_Movie.PageIndex = e.NewSelectedIndex;
    }
}
